package com.sa.token.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.sa.token.dto.request.role.SetRoleRequest;
import com.sa.token.dto.request.user.UpdatePwdRequest;
import com.sa.token.dto.request.user.UserInfoRequest;
import com.sa.token.entity.SysUserInfoEntity;
import com.sa.token.message.StandardResponse;

/**
 * <p>
 * 服务类
 * </p>
 *
 * @author xhs
 * @since 2021-08-27
 */
public interface SysUserInfoService extends IService<SysUserInfoEntity> {

    /**
     * 完善用户信息
     *
     * @param userInfoRequest
     * @return
     */
    StandardResponse insertUserInfo(UserInfoRequest userInfoRequest);

    /**
     * 获取用户信息
     *
     * @return
     */
    StandardResponse getUserInfo();

    /**
     * 修改密码
     *
     * @param updatePwdRequest
     * @return
     */
    StandardResponse updatePwd(UpdatePwdRequest updatePwdRequest);

    /**
     * 编辑用户信息
     *
     * @param userInfoRequest
     * @return
     */
    StandardResponse updateUserInfo(UserInfoRequest userInfoRequest);

    /**
     * 设置角色
     *
     * @param setRoleRequest
     * @return
     */
    StandardResponse setRole(SetRoleRequest setRoleRequest);
}
